package com.it.whitejotterapi.entity;

import java.util.Date;

/**
 * @Author: 羡羡
 * @Date: 2022/05/23/18:00
 */
public class SysBook {
    public int id;
    public String cover;
    public String title;
    public String author;
    public String date;
    public String press;
    public String abs;
    public  int cid;
    public Date createTime;
    public int isDelete;
    public Category cate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getAbs() {
        return abs;
    }

    public void setAbs(String abs) {
        this.abs = abs;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public Category getCate() {
        return cate;
    }

    public void setCate(Category cate) {
        this.cate = cate;
    }

    public SysBook() {
    }

    public SysBook(String cover, String title, String author, String date, String press, String abs, int cid, Date createTime, int isDelete) {
        this.cover = cover;
        this.title = title;
        this.author = author;
        this.date = date;
        this.press = press;
        this.abs = abs;
        this.cid = cid;
        this.createTime = createTime;
        this.isDelete = isDelete;
    }

    public SysBook(int id, String cover, String title, String author, String date, String press, String abs, int cid, Date createTime, int isDelete) {
        this.id = id;
        this.cover = cover;
        this.title = title;
        this.author = author;
        this.date = date;
        this.press = press;
        this.abs = abs;
        this.cid = cid;
        this.createTime = createTime;
        this.isDelete = isDelete;
    }

    public SysBook(String cover, String title, String author, String date, String press, String abs, int cid, Date createTime, int isDelete, Category cate) {
        this.cover = cover;
        this.title = title;
        this.author = author;
        this.date = date;
        this.press = press;
        this.abs = abs;
        this.cid = cid;
        this.createTime = createTime;
        this.isDelete = isDelete;
        this.cate = cate;
    }

    public SysBook(int id, String cover, String title, String author, String date, String press, String abs, int cid, Date createTime, int isDelete, Category cate) {
        this.id = id;
        this.cover = cover;
        this.title = title;
        this.author = author;
        this.date = date;
        this.press = press;
        this.abs = abs;
        this.cid = cid;
        this.createTime = createTime;
        this.isDelete = isDelete;
        this.cate = cate;
    }

    @Override
    public String toString() {
        return "SysBook{" +
                "id=" + id +
                ", cover='" + cover + '\'' +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", date='" + date + '\'' +
                ", press='" + press + '\'' +
                ", abs='" + abs + '\'' +
                ", cid=" + cid +
                ", createTime=" + createTime +
                ", isDelete=" + isDelete +
                ", cate=" + cate +
                '}';
    }
}
